/*
 * @Author: wangming
 * @Date: 2020-09-09 14:50:17
 * @LastEditors: wangming
 * @LastEditTime: 2021-10-28 10:52:00
 * @Description: file content
 */
import Vue from 'vue'
import template from './template.vue'
class CreateInstance {
    static create() {
        if (!this.instance) {
            const BenConstructor = Vue.extend(template)
            this.instance = new BenConstructor({
                el: document.createElement('div')
            })
            document.body.appendChild(this.instance.$el)
        }
    }
    static preview(...arg) {
        this.create()
        return this.instance.clickHandler(...arg)
    }
}
export default CreateInstance
